Skip to content

TST: Clean moments consistency #33813

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Apr 26, 2020

Conversation

charlesdong1991
Copy link
Member

As discussed in #30577 (comment)

This PR is the first step to achieve it, it basically does one thing: break up the giant consistency test in common into four tests based on test contents: var, std, cov, and series data.

cc @jreback

@alimcmaster1 alimcmaster1 added the Testing pandas testing functions or related to the test suite label Apr 26, 2020
@jreback jreback added this to the 1.1 milestone Apr 26, 2020
@jreback
Copy link
Contributor

jreback commented Apr 26, 2020

great looks good. when doing these types of reactoring just make sure that we don't lose tests (a bit tricky to check here as you are actually changing the number of tests), but lgtm.

@jreback jreback added the Window rolling, ewma, expanding label Apr 26, 2020
@jreback jreback merged commit 250663a into pandas-dev:master Apr 26, 2020
@jreback
Copy link
Contributor

jreback commented Apr 26, 2020

thanks @charlesdong1991

@charlesdong1991
Copy link
Member Author

thanks @jreback i will keep followups smaller, and easier to check if any test is lost!

@@ -418,3 +404,44 @@ def test_expanding_consistency(self, min_periods):
# GH 9422
if name in ["sum", "prod"]:
tm.assert_equal(expanding_f_result, expanding_apply_f_result)

@pytest.mark.parametrize("min_periods", [0, 1, 2, 3, 4])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should these get @pytest.mark.slow? test_rolling_consistency_cov clocks in at 38 seconds for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite Window rolling, ewma, expanding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants